package Strings;

public class Number extends Thread{
	int number;

	public Number(int number) {
		super();
		this.number = number;
	}
	@Override
	public void run() {
		synchronized (Demo.class) {
			if(number%3!=0&&number%5!=0){
				System.out.println(number);
			}
			
		}
	}

}
